# -*- encoding:utf-8 -*-
# @Time: 2022/10/19 22:00
# @Author : moran
# @Email: moran@maqu.com
# @File: urls.py
# @Software: PyCharm
from .views import StudentViewSet, ClassesViewSet
from django.urls import path
from rest_framework.routers import DefaultRouter,SimpleRouter

urlpatterns = [

]
router = DefaultRouter()  # 创建路由器
router.register('students', StudentViewSet)  # 注册路由器
router.register('classes', ClassesViewSet)  # 注册路由器
urlpatterns += router.urls
